-- GENERATED SPELL FOR [Mosshide Mongrel] --


function spell0_1008(pUnit, Event) --@Spirit Decay,n/a--
pUnit:FullCastSpellOnTarget(8016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1008', 2000, 1)
end

function Sorts_1008(pUnit, Event)
local choix_sorts_1008 = math.random(0, 0)
if choix_sorts_1008 == 0 then
pUnit:RegisterEvent('spell0_1008', 1, 1)
end
end

function mob1008_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1008', math.random(1500, 3000), 1)
end

function mob1008_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1008_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1008_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1008, 1, 'mob1008_Action')
RegisterUnitEvent(1008, 2, 'mob1008_Leave')
RegisterUnitEvent(1008, 3, 'mob1008_Kill')
RegisterUnitEvent(1008, 4, 'mob1008_Die')
